import { get, post } from "../../utils/request"

//维修管理列表
export const getrepairs = (data:object) =>{ 
    return get('repairs/list',data);
 }
//删除维修
 export const delrepairs = (id:number) =>{ 
    return get('repairs/delete',{id:id});
 }
//批量删除维修信息
 export const delallrepairs = (ids:number[]) =>{ 
    return post('repairs/deleteall',{ids});
 }
//维修状态
 export const getrepairstate = () =>{ 
    return get('repairstate/list',{psize:100});
 }
//维修类型
 export const getrepairstype = () =>{ 
    return get('repairstype/list',{psize:100});
 }